package com.wyh.bean;

import com.wyh.common.group.ISave;
import com.wyh.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


@Data
@ApiModel("用户实体类")
public class User {

    @ApiModelProperty("用户ID")
    @NotEmpty(message = "用户ID不能为空",groups = {IUpdate.class})
    int userId;
    @NotEmpty(message = "用户名不能为空",groups = {ISave.class, IUpdate.class})
    String username;
    String password;
    String nickname;
}
